package com.example.delish.ui.bookmark

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import com.example.delish.R
import com.example.delish.ui.bookmark.viewmodel.BookmarkViewModel

@ExperimentalFoundationApi
@ExperimentalAnimationApi
@Composable
fun BookMark(
    viewModel: BookmarkViewModel,
    onDetails: (Int) -> Unit
) {
//    val recipes by viewModel.state.collectAsState()
//    LazyVerticalGrid(cells = GridCells.Fixed(2)) {
//        items(recipes.recipes.distinct()) { recipe ->
//            InspirationItem(recipe, onDetails = onDetails) {
//                viewModel.deleteRecipe(recipe)
//            }
//        }
//    }
//
//    AnimatedVisibility(visible = recipes.isEmpty) {
//        EmptyView(
//            descText = stringResource(id = R.string.book_mark_empty)
//        )
//    }
}